// 评论管理页面样式
@use '../variables' as *;
.comment-list {
    .page-header {
        background: white;
        border-radius: $radius-lg;
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: $shadow-md;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .page-title {
            margin: 0;
            font-size: 1.5rem;
            font-weight: $font-bold;
            color: $text-primary;
        }
        .header-actions {
            display: flex;
            gap: 12px;
        }
    }
    .filter-section {
        display: flex;
        gap: 16px;
        margin-bottom: 24px;
        align-items: center;
        .search-input {
            width: 300px;
        }
        .el-select {
            width: 150px;
        }
    }
    .comment-content {
        .comment-text {
            margin: 0 0 8px 0;
            line-height: 1.6;
            color: #2c3e50;
            font-size: 0.95rem;
            word-break: break-word;
        }
        .comment-meta {
            display: flex;
            gap: 16px;
            font-size: 0.85rem;
            color: #7f8c8d;
            .comment-author {
                font-weight: 500;
                color: #34495e;
            }
            .comment-time {
                color: #95a5a6;
            }
        }
    }
    .pagination-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 32px;
        padding: 20px 0;
    }

    // 示例数据提示样式
    .el-alert {
        margin-bottom: 16px;
        border-radius: $radius-md;
        .el-alert__title {
            font-weight: $font-semibold;
        }
        .el-alert__description {
            color: $text-secondary;
            line-height: 1.5;
        }
    }
    // 表格样式优化
     :deep(.el-table) {
        border-radius: $radius-lg;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        .el-table__header {
            th {
                background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
                color: $text-primary;
                font-weight: $font-semibold;
                border-bottom: 2px solid #e9ecef;
                padding: 16px 12px;
            }
        }
        .el-table__row {
            transition: all $transition-normal;
            &:hover {
                background-color: rgba(102, 126, 234, 0.05);
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            }
            td {
                padding: 16px 12px;
                border-bottom: 1px solid #f1f3f4;
            }
        }
        .el-table__expand-icon {
            font-size: 14px;
        }
        .el-table__cell:last-child {
            padding-right: 16px;
        }
    }
    // 操作按钮样式
    .action-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-height: 32px;
        .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 32px;
            padding: 0 12px;
            font-size: 12px;
            border-radius: 6px;
            transition: all $transition-normal;
            flex-shrink: 0;
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            }
            .el-icon {
                font-size: 14px;
            }
        }
        .more-btn {
            .el-icon--right {
                margin-left: 2px;
            }
            &:hover {
                background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
                border-color: transparent;
                color: white;
            }
        }
    }
    // 下拉菜单样式
     :deep(.el-dropdown-menu) {
        .el-dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            .el-icon {
                font-size: 14px;
            }
            &:hover {
                background-color: #f5f7fa;
            }
        }
    }
    // 标签样式
     :deep(.el-tag) {
        border-radius: 4px;
        font-weight: 500;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
        min-width: -webkit-fill-available;
        &.el-tag--success {
            background-color: #f0f9ff;
            border-color: #67c23a;
            color: #67c23a;
        }
        &.el-tag--warning {
            background-color: #fff7e6;
            border-color: #e6a23c;
            color: #e6a23c;
        }
        &.el-tag--danger {
            background-color: #fef0f0;
            border-color: #f56c6c;
            color: #f56c6c;
        }
    }
    // 按钮样式
     :deep(.el-button) {
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.3s ease;
        &.el-button--small {
            padding: 6px 12px;
            font-size: 0.85rem;
        }
        &:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
    }
    // 链接样式
     :deep(.el-link) {
        font-weight: 500;
        &:hover {
            text-decoration: underline;
        }
    }
}

// 对话框样式
:deep(.el-dialog) {
    border-radius: 12px;
    overflow: hidden;
    .el-dialog__header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        padding: 20px 24px;
        .el-dialog__title {
            font-weight: 600;
            color: #2c3e50;
        }
    }
    .el-dialog__body {
        padding: 24px;
    }
    .el-dialog__footer {
        border-top: 1px solid #e9ecef;
        padding: 16px 24px;
        background-color: #f8f9fa;
    }
}

// 响应式设计
@media (max-width: 1200px) {
    .comment-list {
        .filter-section {
            .search-input {
                width: 250px;
            }
        }
    }
}

@media (max-width: 768px) {
    .comment-list {
        .comment-list {
            .page-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 24px;
                .page-title {
                    margin: 0;
                    font-size: 1.5rem;
                    font-weight: 600;
                }
                .header-actions {
                    display: flex;
                    gap: 12px;
                }
            }
            .filter-section {
                display: flex;
                gap: 16px;
                margin-bottom: 24px;
                .search-input {
                    width: 300px;
                }
                .el-select {
                    width: 150px;
                }
            }
            .comment-content {
                .comment-text {
                    margin: 0 0 8px 0;
                    line-height: 1.5;
                    color: #333;
                }
                .comment-meta {
                    display: flex;
                    gap: 16px;
                    font-size: 0.9rem;
                    color: #666;
                    .comment-author {
                        font-weight: 500;
                    }
                }
            }
            .pagination-wrapper {
                display: flex;
                justify-content: center;
                margin-top: 24px;
            }
        }
        .filter-section {
            flex-direction: column;
            align-items: stretch;
            .search-input,
            .el-select {
                width: 100%;
            }
        }
        .action-buttons {
            flex-direction: column;
            gap: 6px;
            .action-btn {
                width: 100%;
                justify-content: center;
            }
        }
        // 移动端表格优化
         :deep(.el-table) {
            .el-table__header {
                display: none;
            }
            .el-table__body {
                .el-table__row {
                    display: block;
                    border-bottom: 1px solid #e9ecef;
                    padding: 16px;
                    margin-bottom: 8px;
                    border-radius: 8px;
                    background-color: white;
                    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
                    td {
                        display: block;
                        border: none;
                        padding: 4px 0;
                        &:before {
                            content: attr(data-label) ": ";
                            font-weight: 600;
                            color: #7f8c8d;
                            margin-right: 8px;
                        }
                    }
                }
            }
        }
    }
}

// 响应式设计
@media (max-width: 768px) {
    .comment-list {
        .page-header {
            flex-direction: column;
            gap: 16px;
            align-items: flex-start;
        }
        .filter-section {
            flex-direction: column;
            .search-input,
            .el-select {
                width: 100%;
            }
        }
    }
}